# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname="texmaker"
pkgver=5.1.2
pkgrel=0
pkgdesc="Free cross-platform LaTeX editor since 2003"
url="https://www.xm1math.net/texmaker/index.html"
arch="all !ppc64le !s390x !armhf !riscv64" # qt5-qtwebengine-dev not avail
license="GPL"
depends="desktop-file-utils"
makedepends="qt5-qttools-dev qt5-qtbase-dev qt5-qtscript-dev poppler-qt5
qt5-qtdeclarative-dev qt5-qtwebengine-dev"
source="https://www.xm1math.net/texmaker/$pkgname-$pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	qmake-qt5 PREFIX=/usr texmaker.pro
	make
}

check() {
	make check
}

package() {
	mkdir -p "$pkgdir/usr/share"
	make INSTALL_PATH="$pkgdir" INSTALL_ROOT="$pkgdir" PREFIX="/usr" install
}

sha512sums="
a9625bad6401a36b0a9db90d59aa8e4a2e8f692d4937cbe1c159c46360d2b6257a14f6b5df760acfa7969944c93767d463da395dd5486bf619f6f3db31af7885  texmaker-5.1.2.tar.bz2
"
